//
//  ServiceDataTool.m
//  Traveling
//
//  Created by Northwan on 15/6/7.
//  Copyright (c) 2015年 长沙市岳麓区立早网络科技有限公司. All rights reserved.
//

#import "ServiceDataTool.h"

@implementation ServiceDataTool
+(void)getServiceList:(NSInteger)maxId  url:(NSString *)url keywords:(NSString *)keywords success:(void (^)(MessageRes *))success failure:(void (^)(NSError *))failure{
    NSMutableDictionary *params = [NSMutableDictionary dictionary];
    [params setObject:kAppValue forKey:kAppkey];
    if(!ISBLANK(keywords))
        [params setObject:keywords forKey:@"search_key"];
    [params setObject:[NSNumber numberWithInteger:maxId] forKey:@"max_id"];
     [self postWithUrl:[NSString stringWithFormat:@"%@%@",BASE_URL,url] param:params resultClass:[MessageRes class] success:success failure:failure];
}
@end
